package com.aos.erp.schools.rpc.student;
import com.aos.erp.common.bean.PageBean;
import com.aos.erp.schools.model.student.ro.student.AcceptStudentRo;
import com.aos.erp.schools.model.student.ro.student.ListByCityIdRpcRo;
import com.aos.erp.schools.model.student.vo.student.StudentAllVo;
import com.aos.erp.schools.service.student.StudentService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Auther: chb
 * @Date: 2018/11/15 17:18
 * @Description:  提交122
 */
@RestController
@RequestMapping("/service/studentSubmit")
@Api(tags = {"提交122"})
public class Student122ServiceController {

    @Autowired
    private StudentService studentService ;

    @PostMapping("/ids")
    @ApiOperation(value = "学员  导入")
    public boolean importStudent(List<AcceptStudentRo> ro)
    {
        //TODO      修改学员状态
        if(ro.size()<0)
        {
            return false;
        }


        return true;

    }


    @PostMapping("/exportStudent")
    @ApiOperation(value = "内网 导出")
    public PageBean<StudentAllVo> exportStudent(ListByCityIdRpcRo ro)
    {
        //TODO
        PageBean<StudentAllVo> student=studentService.queryListByCityId(ro);
        return student;
    }
}
